project(sprokit_tests_test)

set(CMAKE_FOLDER "Sprokit/Tests")

set(test_libraries      sprokit_pipeline kwiversys )

sprokit_discover_tests(test test_libraries test_test.cxx)

set(test_libraries
  ${Boost_FILESYSTEM_LIBRARY}
  ${Boost_SYSTEM_LIBRARY}
  ${CMAKE_DL_LIBS}
  )

sprokit_build_tooled_test(dlopen test_libraries test_dlopen.cxx)

get_property(sprokit_libraries GLOBAL      PROPERTY sprokit_libraries)
foreach (library IN LISTS sprokit_libraries)
  sprokit_add_tooled_test(dlopen ${library}
    "$<TARGET_FILE:${library}>")
endforeach ()
